<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter" %>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>EH后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>INSPINIA | Login</title>

    <link href="${ctx}/static/inspinia/css/bootstrap.min.css" rel="stylesheet">
    <link href="${ctx}/static/inspinia/font-awesome/css/font-awesome.css" rel="stylesheet">

    <link href="${ctx}/static/inspinia/css/animate.css" rel="stylesheet">
    <link href="${ctx}/static/inspinia/css/style.css" rel="stylesheet">
<script >
    function load(){
       if(top != self) {
            if(top.location != self.location) {
                top.location = self.location;
            }
       }
    }
</script>

</head>

<body  onload="load()" >

<div class="text-center loginscreen animated fadeInDown row">
    <div class="col-lg-8 login-bg"></div>
    <div class="col-lg-3 login-box">
        <h1>登录</h1>
        <form class="m-t" role="form" action="${ctx}/login" method="post" >
            <div class="form-group">
                <label><i class="user"></i></label>
                <input type="input" class="form-control" name ="username" placeholder="账号" value="" required="">
            </div>
            <div class="form-group">
                <label><i class="psw"></i></label>
                <input type="password" class="form-control" name="password" placeholder="密码" value="" required="">
            </div>
            <c:if test="${not empty msg}">
                <div class="form-group">
                    <div class="alert alert-danger">
                            ${msg}
                    </div>
                </div>
            </c:if>
            <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>

           <%-- <a href="#"><small>忘记密码?</small></a>--%>
        </form>
        <p class="m-t-lg"> <small></small> </p>
    </div>
</div>
<script src="${ctx}/static/inspinia/js/jquery-2.1.1.js"></script>
<script src="${ctx}/static/inspinia/js/bootstrap.min.js"></script>

</body>
</html>